﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WXYW.Entities;
using WXYW.DAL;

namespace WXYW.BLL
{
    public class RequisitionService: RepositoryBase
    {
        public int GetCountOfForm(string codePrefix)
        {
            return GetEntities<RequisitionForm>().Where(r => r.RequisitionCode.StartsWith(codePrefix)).Count();
        }
    }
}
